<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title>用window.open方法创建子窗口</title>
      <script src="event.js"></script>
   </head>
   <body>
     
     <button onclick="onClick_OpenWindow()">打开子窗口</button>
     <p/>
     <button onclick="onClick_Focus()">获取焦点</button>
     <p/>
     <button onclick="onClick_Blur()">失去焦点</button>
     <p/>
     <button onclick="onClick_Close()">关闭窗口</button>
     <p/>
     <button onclick="onClick_PrintDialog()">显示打印窗口</button>
   </body>
</html>
